import { PetConfig } from "../../../resource/PetConfig";
import { PetCollectAttrConfig } from "../../../resource/PetCollectAttrConfig";
import { TPetCollectAttr } from "../../../../../Message/Db/Tables/TPetCollectAttr";
import { PetItemInfo } from "../../../resource/info/PetItemInfo";
type int = number;
//class PetChangeModelData
    
    export  class PetChangeModelData
    {
        constructor(arg1: int=0, arg2: int=0)
        {
            
            this._code = arg1;
            this.activate = arg2;
            return;
        }

        public set code(arg1: int)
        {
            this._code = arg1;
            this._petItemInfo = PetConfig.instance.getItemInfoByCode(this._code);
            this._vo = PetCollectAttrConfig.instance.getItemByAvatarId(this._petItemInfo.modelId);
            return;
        }

        public get code(): int
        {
            return this._code;
        }

        public get attrType(): int
        {
            return this._vo.attrType;
        }

        public get materialNum(): int
        {
            return this._vo.materialNum;
        }

        public get addAttr(): string
        {
            return this._vo.addAttr;
        }

        public /* var */_code: int;

        public /* var */activate: int;

        /* internal */ /* var */_vo: TPetCollectAttr;

        /* internal */ /* var */_petItemInfo: PetItemInfo;
    }
